import service from '@/utils/request'

// 核心指标
export const getCoreData = (data: any) => {
	return service({
		url: '/empi/dataoverview/getRecords',
		method: 'get',
		params: data
	})
}

// 患者年龄分布
export const getPatientAge = (data: any) => {
	return service({
		url: '/empi/dataoverview/getList',
		method: 'get',
		params: data
	})
}

// 患者性别分布
export const getPatientSex = (data: any) => {
	return service({
		url: '/empi/dataoverview/getGenders',
		method: 'get',
		params: data
	})
}

// 患者就诊情况
export const getPatientVisit = (data: any) => {
	return service({
		url: '/empi/dataoverview/getVisit',
		method: 'get',
		params: data
	})
}

// 患者就站情况 更多
export const getPatientStation = (data: any) => {
	return service({
		url: '/empi/dataoverview/getAllVisit',
		method: 'get',
		params: data
	})
}

// 患者信息合并情况
export const getPatientMerge = (data: any) => {
	return service({
		url: '/empi/dataoverview/getMerger',
		method: 'get',
		params: data
	})
}
